package PTA.Mianxiangduixiang.ex14;

import java.util.Scanner;

class Birthday{
    private int year;
    private int month;
    private int day;

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public Birthday() {
    }

    public Birthday(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }
    public int getAge(int year,int month,int day){
        int age = 2017-year;
        if(this.month==12&&this.day>=25){
            age++;
        }
        return age;
    }
}

public class ex14 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int year = sc.nextInt();
        int month = sc.nextInt();
        int day = sc.nextInt();
        Birthday age = new Birthday(year,month,day);
        System.out.println("age="+age.getAge(year,month,day));

    }

}
